package com.imooc.sell.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

@Entity
@Data
@DynamicUpdate

public class OrderDetail {

    @Id
    //详情id
    private String detailId;

    //订单id
    private String orderId;

    //商品id
    private  String productId;

    //商品名字
    private String productName;

    //商品价格
    private BigDecimal productPrice;

    //商品数量
    private Integer productQuantity;

    //商品图片链接
    private String productIcon;

}
